exports.updateCategory = (req,res) => {

    var bodyParams = req.routeInfo.bodyParams;

    //新增文档分类
    var sql = "update docs_category set dc_name = '"+bodyParams.dc_name+"' where dc_id = " + bodyParams.dc_id;

    sqliteDb.run(sql,function(error){

        if(error){
            return RES.errorResponse(res,"抱歉，文档分类更新失败");
        }

        return RES.successResponse(res);

    });

 }